package com.ruoyi.web.controller.api.webapp;

import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.house.domain.IndexBanner;
import com.ruoyi.house.service.IIndexBannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


/**
 * 首页轮播图Controller
 *
 * @author ruoyi
 * @date 2024-06-21
 */
@RestController
@RequestMapping("/api/webapp/house/banner")
public class WAppIndexBannerController extends BaseController {
    @Autowired
    private IIndexBannerService indexBannerService;


    /**
     * 查询首页轮播图列表
     */
    @Anonymous
    @GetMapping("/list")
    public TableDataInfo list(IndexBanner indexBanner)
    {
        startPage();
        List<IndexBanner> list = indexBannerService.selectIndexBannerList(indexBanner);
        return getDataTable(list);
    }
}